package com.zp95sky.demo.aidemo.common.response;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Schema(name = "BaseResponse", title = "通用返回格式")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class BaseResponse<T> {

    @Schema(title = "返回码")
    private String code;

    @Schema(title = "提示信息")
    private String desc;

    @Schema(title = "返回数据")
    private T data;

}
